package com.yycwxt.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@TableName("dct_buyprice")
public class BuyPrice {
    @TableId(type = IdType.AUTO )
    private Integer id;

    @NotNull(message = "不能为空")
    @NotBlank(message = "商家编码code不能为空")
    private String code; //商家编码

    @NotNull(message = "不能为空")
    private BigDecimal price1;//变更前的价格

    private BigDecimal price2;//变更后的价钱

    private Date date;// 变更日期

    private String remark;// 备注

    private LocalDateTime created;// 创建时间
}
